package fr.cie.blog.domainservice;

import java.util.List;

import fr.cie.blog.beans.Card;
import fr.cie.blog.beans.Interest;
import fr.cie.blog.modeldao.hib.InterestDaoImplHib;

/**
 * @author AetM
 * 
 */
public class ServiceInterestDao implements IServiceInterest {
	/**
	 * servInterestImpl.
	 */
	private final IServiceInterest servInterestImpl = new InterestDaoImplHib();

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#save(java.lang.Object)
	 */
	@Override
	public final int save(final Interest interest) {
		return servInterestImpl.save(interest);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#delete(java.lang.Object)
	 */
	@Override
	public final int delete(final Interest interest) {
		return servInterestImpl.delete(interest);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findAll()
	 */
	@Override
	public final List<Interest> findAll() {
		return servInterestImpl.findAll();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * fr.cie.blog.domainservice.IServiceInterest#findByCard(fr.cie.blog.beans
	 * .Card)
	 */
	@Override
	public final List<Interest> findByCard(final Card pCard) {
		return servInterestImpl.findByCard(pCard);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findById(int)
	 */
	@Override
	public final Interest findById(final long pIdentifier) {
		return servInterestImpl.findById(pIdentifier);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#update(java.lang.Object)
	 */
	@Override
	public final int update(final Interest interest) {
		return servInterestImpl.update(interest);
	}

	@Override
	public final List<Interest> findById(final List<Integer> pIdList) {
		return servInterestImpl.findById(pIdList);
	}

}